<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title><s:property value='%{getText("alrm_title")}' /></title>
		<link href="/SCMDB/style/main.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<script type="text/javascript" src="/SCMDB/js/msg.js"></script>
		<%@ include file="../commonPage/message.jsp"%>
	</head>
	<body>
		<s:form action="monitorAlarmAction!findAlarmByType" method="post" name = "fm" theme="simple">
			<div class="main">
				<p class="pEdit">
					<%=request.getAttribute("button")==null?"":request.getAttribute("button")%>
				</p>
				<s:hidden name="idAlarmType"></s:hidden>

				<table border="0" cellpadding="1" cellspacing="1" class="tableList">
					<thead>
						<tr>
							<th width="1%">
								<input type="checkbox" name="checkbox" value="checkbox"
									onclick="Super.checkAll(this.checked)" title="全选/取消" />
							</th>
							<th >
								<s:property value='%{getText("alrm_th1")}' />
							</th>
							<th >
								<s:property value='%{getText("alrm_th2")}' />
							</th>
							<th >
								<s:property value='%{getText("alrm_th3")}' />
							</th>
							<th >
								<s:property value='%{getText("alrm_th4")}' />
							</th>
							<!--<th width="8%">
								<s:property value='%{getText("alrm_th5")}' />
							</th>
							--><th >
								<s:property value='%{getText("alrm_th7")}' />
							</th>
							<th >
								<s:property value='%{getText("alrm_th8")}' />
							</th>
							<th>
								备注
							</th>
							<th >
								确认状态
							</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator id="pageBean" value="entity.list" status="u">
							<tr>
								<td>
									<input type="checkbox" name="checkbox" value="${pageBean.id}" />
								</td>
								<td class="number">
									${entity.index+u.index}
								</td>

								<td>
									${pageBean.type.alarmName}
								</td>

								<td>
										<a href="#" onclick="Super.Popup(5,'查询','/SCMDB/alarmAction!findEmp.action?id=${pageBean.employee.id}','',480,350);">
										${pageBean.employee.empName}
									</a>
								</td>

								<td>
									${pageBean.employee.depart.deptName}
								</td>
								<td>
									<s:property
										value='#pageBean.inTime.toString("yyyy-MM-dd HH:mm:ss")' />
								</td>
								<td>
									<s:property
										value='#pageBean.outTime.toString("yyyy-MM-dd HH:mm:ss")' />
								</td>
								<td>
									<s:if test="%{rmk!=null}">${pageBean.rmk}</s:if>
								</td>

								<td>
									<s:if test='%{state=="0"}'><s:property value='%{getText("alrm_s1")}' /></s:if>
									<s:else><s:property value='%{getText("alrm_s2")}' /></s:else>
								</td>

							</tr>
						</s:iterator>
						<tr>
							<td colspan="10" class="turnPage">
								<jsp:include flush="true" page="../commonPage/page.jsp">
									<jsp:param name="entity" value="entity" />
								</jsp:include>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</s:form>
	</body>
</html>

